#include <allegro5/allegro.h>

int main();

int catch_signal(int sig, void (*handler)(int));

void apply_ratio();

void render_state();

void add_fire_source(int intensity);

void calc_canvas();

void stop(int code);

const unsigned char pallete[][3] = {
    {7,7,7},
    {31,7,7},
    {47,15,7},
    {71,15,7},
    {87,23,7},
    {103,31,7},
    {119,31,7},
    {143,39,7},
    {159,47,7},
    {175,63,7},
    {191,71,7},
    {199,71,7},
    {223,79,7},
    {223,87,7},
    {223,87,7},
    {215,95,7},
    {215,95,7},
    {215,103,15},
    {207,111,15},
    {207,119,15},
    {207,127,15},
    {207,135,23},
    {199,135,23},
    {199,143,23},
    {199,151,31},
    {191,159,31},
    {191,159,31},
    {191,167,39},
    {191,167,39},
    {191,175,47},
    {183,175,47},
    {183,183,47},
    {183,183,55},
    {207,207,111},
    {223,223,159},
    {239,239,199},
    {255,255,255}
};
